package com.cloud.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.message.entity.SysImGroupUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * IM消息群组与用户关联表
 *
 * @author yzj
 * @since 2024-01-09
 */
@Mapper
public interface SysImGroupUserMapper extends BaseMapper<SysImGroupUser> {

    /**
     * 用户删除群组信息
     */
    public int delGroupUser(@Param("param") SysImGroupUser param);

    /**
     * 批量删除群组用户
     */
    public int batchGroupUser(@Param("groupIds") List<Long> groupIds);

    /**
     * IM消息群组用户列表
     */
    public List<SysImGroupUser> getImGroupUserList(@Param("groupId") Long groupId);

}
